from django.urls import path
from . import views

urlpatterns = [
    # /labels/full/  GET
    path('labels/full/', views.LabelsFullAPIView.as_view()),
    # /labels/ GET
    path('labels/', views.LabelsAPIView.as_view()),
    # /labels/users/ GET
    path('labels/users/', views.UsersLabelsAPIView.as_view()),
    # /questions/{id}/label/??/  GET
    path('questions/<str:id>/label/new/', views.NewQuestionsLabel.as_view()),
    path('questions/<str:id>/label/hot/', views.HotQuestionsLabel.as_view()),
    path('questions/<str:id>/label/wait/', views.WaitQuestionsLabel.as_view()),

    # /questions/ POST
    path('questions/', views.QuestionsAPIView.as_view()),
    #  /questions/{id}/
    path('questions/<str:id>/', views.QuestionsQueryAPIView.as_view()),
    #  /questions/{id}/useful/
    path('questions/<str:id>/useful/', views.QuestionsUseful.as_view()),
    #  /questions/{id}/unuseful/
    path('questions/<str:id>/unuseful/', views.QuestionsUnuseful.as_view()),

    #  /reply/
    path('reply/', views.ReplyAPIView.as_view()),

    path('reply/<str:id>/useful/', views.ReplyUseful.as_view()),

    path('reply/<str:id>/unuseful/', views.ReplyUnuseful.as_view()),

    # /labels/{id}/focusin/
    path('labels/<str:id>/focusin/', views.LabelFocusin.as_view()),
    # /labels/{id}/focusout/
    path('labels/<str:id>/focusout/', views.LabelUnfocusin.as_view()),
    # /labels/{id}/
    path('labels/<str:id>/', views.LabelQueryAPIView.as_view()),
]
